package org.proxycine.gestsalles.services;

import java.util.List;

import org.proxycine.gestsalles.model.dao.CatalogueDao;
import org.proxycine.gestsalles.model.entities.Film;

public final class CatalogueService {
	
	private static CatalogueService instance;
	
	private CatalogueService() {
		instance = this;
	}
	
	public static CatalogueService getInstance() {
		if(instance == null)
			instance = new CatalogueService();
		
		return instance;
	}
	
	public List<Film> getFilms() {
		return CatalogueDao.getInstance().getFilmsCatalogue();
	}

}
